<?php session_start();?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="maintenancePagesCSS.css" />
        <title>Delete Customer</title>
    </head>
    <body>
        <div align="center">
                  <table width="1000" height="599" border="0" background="images/background.jpg">
            <tr>
              <th height="296" scope="col"><div align="center">
                <p><img src="images/TitleDeleteCustomer.gif" alt="Delete Customer" width="514" height="67"> </p>
                <p>
                  <?php
        // put your code here
            include "Customer.php";
            include "CustomerDao.php";
            include "Datasource.php";

            $tempCustomer = new Customer();
            $tempCustomer->setCustomerID($_GET['id']);
            $customerDao = new CustomerDao();
            $conn = new Datasource("localhost","theanykey","root","");

            $customerDao->delete($conn, $tempCustomer);

            print("<center>Customer has been removed from database.</center>");

        ?>
                  <BR>
                  <script src="links.js" language="javascript" type="text/javascript"></script>
                  <script type="text/javascript">
            writeCustomerLinks("", "");
                  </script>
                </p>
              </div></th>
            </tr>
            <tr>
              <th height="297" scope="col">&nbsp;</th>
            </tr>
          </table>
          <p>&nbsp;</p>
        </div>
    </body>
</html>
